//
//  AppDelegate.swift
//  iWeather
//
//  Created by mac on 2017/3/6.
//  Copyright © 2017年 JY. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

  @IBOutlet weak var window: NSWindow!
  
  let statusItem = NSStatusBar.system().statusItem(withLength: -2)


  func applicationDidFinishLaunching(_ aNotification: Notification) {
    if let buttion = statusItem.button {
      buttion.image = NSImage(named: "StatusBarButtonImage")
      buttion.action = #selector(AppDelegate.togglePopover)
    }
    
  }
  
  func togglePopover(sender: AnyObject) {
    
  }

  
  
  
  
  
  
  func applicationWillTerminate(_ aNotification: Notification) {
    // Insert code here to tear down your application
  }
}

